﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService
{
    public interface IHostSerice
    {
        /// <summary>
        /// 获取名称
        /// </summary>
        /// <param name="val">你要传输的val值</param>
        /// <returns></returns>
        string GetName(string val);
        /// <summary>
        /// 写入一个User
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        List<UserDto> UserAdd(UserDto user);
        /// <summary>
        /// 获取指定姓名的User
        /// </summary>
        /// <param name="Name"></param>
        /// <returns></returns>
        UserDto GetUser(string Name);
    }
}
